<memory>
    <key>{{ memory.key }}</key>
    {% if memory.instructions %}
    <instructions>{{ memory.instructions }}</instructions>
    {% endif %}
</memory>